import request from '/src/axios.js';
import {baseUrl} from "../../config/env";

export const clientApi = {
  getList: (page, limit, params) => request({
    url: baseUrl + '/api-uaa/clients/list',
    method: 'get',
    params: {
      ...params,
      current: page,
      size: limit,
    }
  }),
  getDetail: (id) => request({
    url: baseUrl + '/api-uaa/clients/' + id,
    method: 'get',
    // params: {
    //   id
    // }
  }),
  remove: (ids) => request({
    url: '/api/blade-system/client/remove',
    method: 'post',
    params: {
      ids,
    }
  }),
  add: (row) => request({
    url: '/api/blade-system/client/submit',
    method: 'post',
    data: row
  }),
  update: (row) => request({
    url: '/api/blade-system/client/submit',
    method: 'post',
    data: row
  })
}
